{extends file="../layout.tpl"}
{block name=title}Users List{/block}
{block name=body}
	<div class="container-fluid">
		<div class="page-header">
			<h1>Phalcon Framework <small>Tutorial: List out data from User table</small></h1>
		</div>
		<table class="table table-condensed table-hover table-striped table-responsive table-bordered">
			<thead>
				<tr>
					{foreach $columns as $column}
						<th>{$column.text}</th>
					{/foreach}
				</tr>
			</thead>
			<tbody>
				{foreach $users as $userDetails}
					<tr>
					{foreach $userDetails as $key => $value}
						<td>{$value}</td>
					{/foreach}
					</tr>
				{/foreach}
			</tbody>
		</table>
		<a href="/user/add" class="btn btn-default">Add User Form</a>
	</div>
{/block}